home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 52
/
Amiga Format AFCD52 (Issue 136, May 2000).iso
/
-serious-
/
hardware
/
ahd12
/
fmt
/
fmt.c
next >
Wrap
C/C++ Source or Header
|
2000-02-28
|
504b
|
30 lines
int fmthard(unsigned long);
int readhardsec(char *, long, long);
unsigned short buf[256];
void
main()
{
int start, end, temp;
doreset();
if(readhardsec((char *)buf, 0L, 512L)) exit();
puts("Start format at track");
flushall();
scanf("%d", &start);
puts("End format at track");
flushall();
scanf("%d", &end);
for(temp = start ; temp <= end ; temp++)
{
printf("Track :%d\r", temp);
fmthard(temp * 512L * buf[2] * buf[3]);
}
puts("");
}